var express = require('express');
var router = express.Router();

// 首页轮播图
router.get("/lunbo",(req,res)=>{
    var lunboList = [
      {img:"/images/lunbo1.jpg"},
      {img:"/images/lunbo2.jpg"},
      {img:"/images/lunbo3.jpg"},
    ];
    res.json({err:0,data:lunboList});
});

// 首页四宫格
router.get("/four",(req,res)=>{
    var fourList = [
      {img:"/images/tulanjiaju.png",font:"图览家居"},
      {img:"/images/kehushaijia.png",font:"客户晒家"},
      {img:"/images/tiyanguan.png",font:"体验馆"},
      {img:"/images/kehuduan.png",font:"图览家居"},
    ];
    res.json({err:0,data:fourList});
});

// 首页三宫格
router.get("/three",(req,res)=>{
    var threeList = [
      {img:"/images/1.jpg"},
      {img:"/images/2.jpg"},
      {img:"/images/3.jpg"},
    ];
    res.json({err:0,data:threeList});
});

// 首页中部
router.get("/renqi",(req,res)=>{
     var renqiList = [
      {img:"/images/renqibaopin1.jpg"},
      {img:"/images/renqibaopin2.jpg"},
      {img:"/images/renqibaopin3.jpg"},
      {img:"/images/renqibaopin4.jpg"},
      {img:"/images/renqibaopin5.jpg"},
    ];
    res.json({err:0,data:renqiList});
});
router.get("/jiajucheng",(req,res)=>{
     var jiajuchengList = [
      {img:"/images/jiajucheng1.jpg"},
      {img:"/images/jiajucheng2.jpg"},
      {img:"/images/jiajucheng3.jpg"},
      {img:"/images/jiajucheng4.jpg"},
      {img:"/images/jiajucheng5.jpg"},
    ];
    res.json({err:0,data:jiajuchengList});
})
router.get("/jianchai",(req,res)=>{
     var jianchaiList = [
      {img:"/images/jianchaicheng1.jpg"},
      {img:"/images/jianchaicheng2.jpg"},
      {img:"/images/jianchaicheng3.jpg"},
      {img:"/images/jianchaicheng4.jpg"},
      {img:"/images/jianchaicheng5.jpg"},
    ];
    res.json({err:0,data:jianchaiList});
})

module.exports = router;
